package com.qicheng.wlhyspider.common;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@NoArgsConstructor
@Data
public class Result<T> implements Serializable {
    private static final long serialVersionUID = 1017457742480697773L;


    /**
     * success
     */
    private Boolean success;
    /**
     * message
     */
    private String message;
    /**
     * code
     */
    private Integer code;
    /**
     * result
     */
    private T result;
    /**
     * timestamp
     */
    private Long timestamp;

    public Result(Boolean success,Integer code,  String message) {
        this.code = code;
        this.success = success;
        this.message = message;
    }
}
